<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value=$title|default:'订单'}}
{{assign var="app" value='order'}}
{{assign var="act" value='index'}}
{{assign var="table" value='members'}}
{{assign var="td" value='12'}}
{{assign var="istype" value='istype'|C}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
	<div id="content">
	
	<div class="search">
	<form action="index.php" name='search' class="router" method="get">
		<input type="hidden" name="app" value="{{$app}}"/>
		<input type="hidden" name="item" value="{{$smarty.get.item}}"/>
		<ul class="bread">
			<li class="floatr">
			</li>
			<li>
				订单号：<input class="input-small" type="text" name="orderid" maxlength="50" value="{{$smarty.get.orderid}}" />
			</li>
			<li>
				<button type="submit" class="search btn btn-success"><i class="icon-search"></i>搜索</button>
				<a href="index.php?app={{$app}}&act={{$act}}{{if $smarty.get.item}}&item={{$smarty.get.item}}{{/if}}" class="a">清除</a>
			</li>
		</ul>
	</form>
	</div>

	<form name='form' action="index.php?app={{$app}}" method="post">
	<input type="hidden" name="app" value="{{$app}}"/>
	<input type="hidden" name="act" value=""/>
	<input type="hidden" name="table" value="{{$table}}"/>
	<table class="table table-bordered tablest drags saveorder" date="{{'table='|cat:$table|cat:'&field=ordering'|encode}}" >
		<tr class="thead">
			<td colspan="{{$td}}">
				<div class="floatr">
					<a class="btn iframe fontwn" width="80%" height="67%" title="快递类型添加" href="index.php?app=category&act=index&cat_id=316&iframe=true"><i class="icon-picture"></i>快递类型添加</a>
					<!-- <a class="btn iframe" href="index.php?app={{$app}}&act=modify&item={{$smarty.request.item}}{{if $smarty.get.tpl}}&tpl={{$smarty.get.tpl}}{{/if}}&iframe=true"><i class="icon-plus"></i>添加{{$title}}</a> -->
					<!-- <a class="delete btn btn-danger" href="javascript:"><i class="icon-trash icon-white"></i>批量删除</a> -->
				</div>
				◆ {{if !$smarty.get.item}}
				<a href="index.php?app={{$app}}&act=type">{{$title}}管理</a> －> 
				<a href="index.php?app={{$app}}&cat_id={{$parent_cat.id}}">{{$parent_cat.title}}</a> －>
				{{/if}}
				{{$title}}列表
			</td>
		</tr>
		{{if !$result.data}}
		<tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr>
		{{else}}
		<tr class="ttitle">
			<th width="20"><label><input class="check_all" type="checkbox"/></label></th>
			<th width="35"><a class="ajaxSubmit refresh {{if substr($order,0,4)=='`id`'}}current{{/if}}" link="index.php?app=members&order=id">ID<span><i style="padding-left:5px"class="{{if $order=='`id` ASC'}}icon-sort-up{{elseif $order=='`id` DESC'}}icon-sort-down{{else}}icon-sort{{/if}}"></i></span></a></th>
			<th width="150" style="text-align:center">{{$title}}号</th>
			<th width="100" style="text-align:center">买家</th>
			<th width="50" style="text-align:center">商品图片</th>
			<th width="50" style="text-align:center">商品数目</th>
			<th width="50" style="text-align:center">支付价格</th>
			<th width="50" style="text-align:center">支付方式</th>
			<th width="100" style="text-align:center">物流方式</th>
			<th width="80" style="text-align:center">收获地址</th>
			<th width="100" style="text-align:center">下单时间</th>
			<th width="80" style="text-align:center">操作</th>
		</tr>
		<tbody>
			{{foreach from=$result.data item=val key=key}}
			<tr class="drag">
				{{*全选*}}<td><label><input name="check_id[]" class="check_id" value="{{$val.id}}" type="checkbox"/></label></td>
				{{*ID*}}<td>{{$val.id}}<input name="ids[]" value="{{$val.id}}" type="hidden"/></td>
				{{*卡号*}}<td style="text-align:center">{{$val.orderid}}</td>
				{{*买家*}}<td style="text-align:center">{{$val.user}}</td>
				{{*商品图片*}}<td style="text-align:center">{{if $val.goods}}<a class="zoom" title="{{$val.goods|photo}}" href="{{$val.goods|photo}}"><img style="max-width:35px;max-height:35px;" src="{{$val.goods|photo:35:35}}"/></a>{{/if}}</td>
				{{*商品数目*}}<td style="text-align:center">{{$val.number}}</td>
				{{*支付价格*}}<td style="text-align:center">{{$val.price}}</td>
				{{*支付方式*}}<td style="text-align:center">{{$istype[$val.istype]}}</td>
				{{*物流方式*}}<td style="text-align:center">
				{{if $result.type}}
				{{foreach item=val1 from=$result.type}}
				{{if $val1.item == $val.logistics_type}}
				{{$val1.title}}
				{{/if}}
				{{/foreach}}
				{{/if}}
				</td>
				{{*收获地址*}}<td style="text-align:center">{{$val.address}}</td>
				{{*下单时间*}}<td style="text-align:center">{{$val.adddate}}</td>
				<td>
					<a href="index.php?app={{$app}}&act=modify&id={{$val.id}}&item={{$smarty.request.item}}{{if $smarty.get.tpl}}&tpl={{$smarty.get.tpl}}{{/if}}&iframe=true" class="btn iframe"><i class="icon-edit"></i>物流管理</a>
				</td>
			</tr>
			{{/foreach}}
			<tr class="noline ttitle">
				<td colspan="{{$td}}">
					<a class="check_all btn"><i class="icon-ok"></i>全选/反选</a>
				</td>
			</tr>
			<tr class="thead">
			  <td colspan="{{$td}}">
				{{include file="include/page.html"}}
			  </td>
			</tr>
		</tbody>
		{{/if}}
	</table>
	</form>
</div>
</div>

</body>
</html>